package com.yudean.esb.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JsonModel {
    private boolean result;
    private String msg;
    private Integer count;
    private Object data;

    public JsonModel(boolean result, String msg) {
        this.result = result;
        this.msg = msg;
    }

    public JsonModel(boolean result, Object data) {
        this.result = result;
        this.data = data;
    }

    public JsonModel(boolean result, String msg, Object data) {
        this.result = result;
        this.msg = msg;
        this.data = data;
    }
}